/*******************************************************************************
*  file    : application.hpp
*  created : 15.08.2013
*  author  : Slyshyk Oleksiy (alexSlyshyk@gmail.com)
*******************************************************************************/

#ifndef APPLICATION_HPP
#define APPLICATION_HPP

#include <QCoreApplication>

class Application : public QCoreApplication
{
    Q_OBJECT
public:
    Application(int &argc, char **argv);

    static Application *instance();
    void userInterrupt();

    const QString& logDir();
    const QString& dataDir();
private:
    void setCodecs();
    void checkLogDir();
    void checkDataDir();

private:
    QString log_dir_;
    QString data_dir_;
};

#endif // APPLICATION_HPP
